package cn.kongwg.demo05;

import java.io.Serializable;

/**
 * @author kongwg
 * @create 2021-06-07 17:36
 */
public class Car implements Serializable {
    private static final long serialVersionUID = 1971986711833124209L;
    private int id;
    private String name;

    public Car(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
